package 网络编程项目.login;

import javax.swing.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class RegisterTip {
  private JPanel registerLabel;
  private JButton backButton;
  private JLabel TipLabel;
  private JPanel panel1;
  private JPanel panel2;
  private static JFrame frame = new JFrame("RegisterTip");

  public RegisterTip() {
    backButton.addMouseListener(new MouseAdapter() {
      @Override
      public void mouseClicked(MouseEvent e) {
        frame.setVisible(false);
      }
    });
  }

  public static void main() {
    frame.setContentPane(new RegisterTip().registerLabel);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);
    frame.setSize(300, 150);
    frame.setLocation(650, 400);
  }
}
